package com.ruoyi.goods.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.goods.api.factory.RemoteGoodsFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author:Jiang
 * @Date: 2023/08/09/ 17:17
 **/
@FeignClient(contextId = "ReSpecificationService", value = ServiceNameConstants.GOODS_SERVICE, fallbackFactory = RemoteGoodsFallbackFactory.class)
public interface ReSpecificationService {
    @GetMapping("/specification/{warehouseCode}")
    AjaxResult getInfo(@PathVariable("id") Long id);
}
